package com.quasar.hpatient.model.custommodel;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import java.io.Serializable;

/**
 * name : lishuai
 * time : 2017/11/18
 * title:
 */

public class PharmedData implements Serializable, MultiItemEntity {

    public static final int TITLE = 1;  //日历
    public static final int FROM = 2;   //记录信息
    public static final int EDIT = 3;   //调药信息

    private int itemType;
    private String Time;
    private Boolean editmessage;
    private String fromcontent;

    public String getFromcontent() {
        return fromcontent;
    }

    public void setFromcontent(String fromcontent) {
        this.fromcontent = fromcontent;
    }

    public PharmedData(int itemType, String time) {  //显示日历
        this.itemType = itemType;
        Time = time;
    }
    public PharmedData(int itemType, PharmedItemData pharmedItemData) {  //显示记录信息
        this.itemType = itemType;
        this.pharmedItemData = pharmedItemData;
    }
    public PharmedData(int itemType, Boolean editmessage, String fromcontent) {  //显示尾部调药信息
        this.itemType = itemType;
        this.editmessage = editmessage;
        this.fromcontent = fromcontent;
    }

    public PharmedItemData pharmedItemData;  //调药记录子项

    public PharmedItemData getPharmedItemData() {
        return pharmedItemData;
    }

    public void setPharmedItemData(PharmedItemData pharmedItemData) {
        this.pharmedItemData = pharmedItemData;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public String getTime() {
        return Time;
    }

    public void setTime(String time) {
        Time = time;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
